import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/activityFrame/list',
    method:'get',
    params:params
  })
}

export function createFrame(data) {
  return request({
    url:'/activityFrame/create',
    method:'post',
    data:data
  })
}
export function getFrame(id){
  return request({
      url:"/activityFrame/"+id,
      method:'get'
  })
}
export function updateFrame(id,data) {
  return request({
    url:'/activityFrame/update/'+id,
    method:'post',
    data:data
  })
}

export function delFrame(id,data) {
    return request({
        url:'/activityFrame/del/'+id,
        method:'get',
        //data:data
    })
}

export function createFrameDetail(data) {
    return request({
      url:'/activityFrame/detail/create',
      method:'post',
      data:data
    })
  }
export function getFrameDetail(id){
    return request({
        url:"/activityFrame/detail/"+id,
        method:'get'
    })
}
export function updateFrameDetail(id,data){
    return request({
        url:'/activityFrame/update/detail/'+id,
        method:'post',
        data:data
    })
}